package main

import (
	"activity/rpc"
	"fmt"
)

func main() {
	res, err := rpc.UsernameLogin("a891806797","a6334604879")
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(res)
	res1, err := rpc.GetCurrentIntegral(10)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(res1.GetTotalAmount())

	res2, err := rpc.GetFlowRecord(1)
	if err != nil {
		fmt.Println(err)
	}

	fmt.Println(res2.FlowRecords)

}
